package com.quxiu.common.core.utils.security;

import cn.hutool.core.util.HexUtil;
import lombok.Data;

@Data
public class KeyPairVo {
    private String publicKey;
    private String privateKey;

    public KeyPairVo(String publicKey, String privateKey) {
        this.publicKey = publicKey;
        this.privateKey = privateKey;
    }

    public KeyPairVo(byte[] publicKey, byte[] privateKey) {
        this.publicKey = HexUtil.encodeHexStr(publicKey);
        this.privateKey = HexUtil.encodeHexStr(privateKey);
    }
}
